import request from '@/utils/request'
/**
 * 获取联想建议列表
 * @param {*} q
 * @returns
 */
export function reqSuggestion(q) {
  return request.get('/v1_0/suggestion', {
    params: {
      q
    }
  })
}
/**
 * 获取搜索列表
 * @param {*} q 关键词
 * @param {*} page
 * @param {*} per_page
 * @returns
 */
export function reqSearchResultList(q, page = 1, per_page = 10) {
  return request.get('/v1_0/search', {
    params: {
      q,
      page,
      per_page
    }
  })
}
